/**
 * Secure Digital Card Interface for the MSP430.
 * SPI is a synchronous serial protocol
 * 
 * code according to:
 * Dept. of Electrical and Computer Engineering
 * Michigan State University, 2004
 * F. Foust
 * 
 * \file spi.h
 * @author        Andreas Schlueter
 */

#ifndef SPI_H
#define SPI_H

void spi_initialize();
void spi_set_divisor(unsigned int divisor);
void spi_cs_assert();
void spi_cs_deassert();
void spi_send_byte(unsigned char input);
unsigned char spi_rcv_byte();
void spi_enable();
void spi_disable();

#endif  SPI_H
